home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 401-425 / disk_407 / flex / src.lzh / src / initscan.c < prev    next >
C/C++ Source or Header  |  1990-06-27  |  68KB  |  2,292 lines

  1. /* A lexical scanner generated by flex */
  2.  
  3. /* scanner skeleton version:
  4.  * $Header: /usr/fsys/odin/a/vern/flex/RCS/flex.skel,v 2.13 90/05/26 17:24:13 vern Exp $
  5.  */
  6.  
  7. #define FLEX_SCANNER
  8.  
  9. #include <stdio.h>
  10.  
  11. #ifdef __STDC__
  12.  
  13. #ifndef DONT_HAVE_STDLIB_H
  14. #include <stdlib.h>
  15. #else
  16. void *malloc( unsigned );
  17. void free( void* );
  18. #endif
  19.  
  20. #define YY_USE_PROTOS
  21. #define YY_USE_CONST
  22. #endif
  23.  
  24.  
  25. /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  26. #ifdef c_plusplus
  27. #ifndef __cplusplus
  28. #define __cplusplus
  29. #endif
  30. #endif
  31.  
  32.  
  33. #ifdef __cplusplus
  34.  
  35. #ifndef __STDC__
  36. #include <stdlib.h>
  37. #endif
  38.  
  39. #include <osfcn.h>
  40.  
  41. /* use prototypes in function declarations */
  42. #define YY_USE_PROTOS
  43.  
  44. /* the "const" storage-class-modifier is valid */
  45. #define YY_USE_CONST
  46.  
  47. #endif
  48.  
  49.  
  50. #ifdef __TURBOC__
  51. #define YY_USE_CONST
  52. #endif
  53.  
  54.  
  55. #ifndef YY_USE_CONST
  56. #define const
  57. #endif
  58.  
  59.  
  60. #ifdef YY_USE_PROTOS
  61. #define YY_PROTO(proto) proto
  62. #else
  63. #define YY_PROTO(proto) ()
  64. /* there's no standard place to get these definitions */
  65. char *malloc();
  66. int free();
  67. int read();
  68. #endif
  69.  
  70.  
  71. /* amount of stuff to slurp up with each read */
  72. #ifndef YY_READ_BUF_SIZE
  73. #define YY_READ_BUF_SIZE 8192
  74. #endif
  75.  
  76. /* returned upon end-of-file */
  77. #define YY_END_TOK 0
  78.  
  79. /* copy whatever the last rule matched to the standard output */
  80.  
  81. /* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
  82. /* this used to be an fputs(), but since the string might contain NUL's,
  83.  * we now use fwrite()
  84.  */
  85. #define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
  86.  
  87. /* gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  88.  * is returned in "result".
  89.  */
  90. #define YY_INPUT(buf,result,max_size) \
  91.     if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  92.         YY_FATAL_ERROR( "read() in flex scanner failed" );
  93. #define YY_NULL 0
  94.  
  95. /* no semi-colon after return; correct usage is to write "yyterminate();" -
  96.  * we don't want an extra ';' after the "return" because that will cause
  97.  * some compilers to complain about unreachable statements.
  98.  */
  99. #define yyterminate() return ( YY_NULL )
  100.  
  101. /* report a fatal error */
  102.  
  103. /* The funky do-while is used to turn this macro definition into
  104.  * a single C statement (which needs a semi-colon terminator).
  105.  * This avoids problems with code like:
  106.  *
  107.  *     if ( something_happens )
  108.  *        YY_FATAL_ERROR( "oops, the something happened" );
  109.  *    else
  110.  *        everything_okay();
  111.  *
  112.  * Prior to using the do-while the compiler would get upset at the
  113.  * "else" because it interpreted the "if" statement as being all
  114.  * done when it reached the ';' after the YY_FATAL_ERROR() call.
  115.  */
  116.  
  117. #define YY_FATAL_ERROR(msg) \
  118.     do \
  119.         { \
  120.         (void) fputs( msg, stderr ); \
  121.         (void) putc( '\n', stderr ); \
  122.         exit( 1 ); \
  123.         } \
  124.     while ( 0 )
  125.  
  126. /* default yywrap function - always treat EOF as an EOF */
  127. #define yywrap() 1
  128.  
  129. /* enter a start condition.  This macro really ought to take a parameter,
  130.  * but we do it the disgusting crufty way forced on us by the ()-less
  131.  * definition of BEGIN
  132.  */
  133. #define BEGIN yy_start = 1 + 2 *
  134.  
  135. /* action number for EOF rule of a given start state */
  136. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  137.  
  138. /* special action meaning "start processing a new file" */
  139. #define YY_NEW_FILE \
  140.     do \
  141.         { \
  142.         yy_init_buffer( yy_current_buffer, yyin ); \
  143.         yy_load_buffer_state(); \
  144.         } \
  145.     while ( 0 )
  146.  
  147. /* default declaration of generated scanner - a define so the user can
  148.  * easily add parameters
  149.  */
  150. #define YY_DECL int yylex YY_PROTO(( void )) 
  151.  
  152. /* code executed at the end of each rule */
  153. #define YY_BREAK break;
  154.  
  155. #define YY_END_OF_BUFFER_CHAR 0
  156.  
  157. #ifndef YY_BUF_SIZE
  158. #define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
  159. #endif
  160.  
  161. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  162.  
  163. #define YY_CHAR unsigned char
  164. # line 1 "scan.l"
  165. #define INITIAL 0
  166. /* scan.l - scanner for flex input */
  167. # line 5 "scan.l"
  168. /*-
  169.  * Copyright (c) 1990 The Regents of the University of California.
  170.  * All rights reserved.
  171.  *
  172.  * This code is derived from software contributed to Berkeley by
  173.  * Vern Paxson.
  174.  * 
  175.  * The United States Government has rights in this work pursuant
  176.  * to contract no. DE-AC03-76SF00098 between the United States
  177.  * Department of Energy and the University of California.
  178.  *
  179.  * Redistribution and use in source and binary forms are permitted provided
  180.  * that: (1) source distributions retain this entire copyright notice and
  181.  * comment, and (2) distributions including binaries display the following
  182.  * acknowledgement:  ``This product includes software developed by the
  183.  * University of California, Berkeley and its contributors'' in the
  184.  * documentation or other materials provided with the distribution and in
  185.  * all advertising materials mentioning features or use of this software.
  186.  * Neither the name of the University nor the names of its contributors may
  187.  * be used to endorse or promote products derived from this software without
  188.  * specific prior written permission.
  189.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  190.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  191.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  192.  */
  193.  
  194. #ifndef lint
  195. static char rcsid[] =
  196.     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
  197. #endif
  198.  
  199. #undef yywrap
  200.  
  201. #include "flexdef.h"
  202. #include "parse.h"
  203.  
  204. #define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
  205. #define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
  206.  
  207. #undef YY_DECL
  208. #define YY_DECL \
  209.     int flexscan()
  210.  
  211. #define RETURNCHAR \
  212.     yylval = yytext[0]; \
  213.     return ( CHAR );
  214.  
  215. #define RETURNNAME \
  216.     (void) strcpy( nmstr, (char *) yytext ); \
  217.     return ( NAME );
  218.  
  219. #define PUT_BACK_STRING(str, start) \
  220.     for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
  221.         unput((str)[i])
  222.  
  223. #define CHECK_REJECT(str) \
  224.     if ( all_upper( str ) ) \
  225.         reject = true;
  226.  
  227. #define CHECK_YYMORE(str) \
  228.     if ( all_lower( str ) ) \
  229.         yymore_used = true;
  230. #define SECT2 1
  231. #define SECT2PROLOG 2
  232. #define SECT3 3
  233. #define CODEBLOCK 4
  234. #define PICKUPDEF 5
  235. #define SC 6
  236. #define CARETISBOL 7
  237. #define NUM 8
  238. #define QUOTE 9
  239. #define FIRSTCCL 10
  240. #define CCL 11
  241. #define ACTION 12
  242. #define RECOVER 13
  243. #define BRACEERROR 14
  244. #define C_COMMENT 15
  245. #define ACTION_COMMENT 16
  246. #define ACTION_STRING 17
  247. #define PERCENT_BRACE_ACTION 18
  248. #define USED_LIST 19
  249. #define CODEBLOCK_2 20
  250. #define XLATION 21
  251. # line 84 "scan.l"
  252.  
  253. /* done after the current pattern has been matched and before the
  254.  * corresponding action - sets up yytext
  255.  */
  256. #define YY_DO_BEFORE_ACTION \
  257.     yytext = yy_bp; \
  258.     yyleng = yy_cp - yy_bp; \
  259.     yy_hold_char = *yy_cp; \
  260.     *yy_cp = '\0'; \
  261.     yy_c_buf_p = yy_cp;
  262.  
  263. #define EOB_ACT_CONTINUE_SCAN 0
  264. #define EOB_ACT_END_OF_FILE 1
  265. #define EOB_ACT_LAST_MATCH 2
  266.  
  267. /* return all but the first 'n' matched characters back to the input stream */
  268. #define yyless(n) \
  269.     do \
  270.         { \
  271.         /* undo effects of setting up yytext */ \
  272.         *yy_cp = yy_hold_char; \
  273.         yy_c_buf_p = yy_cp = yy_bp + n; \
  274.         YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  275.         } \
  276.     while ( 0 )
  277.  
  278. #define unput(c) yyunput( c, yytext )
  279.  
  280.  
  281. struct yy_buffer_state
  282.     {
  283.     FILE *yy_input_file;
  284.  
  285.     YY_CHAR *yy_ch_buf;        /* input buffer */
  286.     YY_CHAR *yy_buf_pos;    /* current position in input buffer */
  287.  
  288.     /* size of input buffer in bytes, not including room for EOB characters*/
  289.     int yy_buf_size;    
  290.  
  291.     /* number of characters read into yy_ch_buf, not including EOB characters */
  292.     int yy_n_chars;
  293.  
  294.     int yy_eof_status;        /* whether we've seen an EOF on this buffer */
  295. #define EOF_NOT_SEEN 0
  296.     /* "pending" happens when the EOF has been seen but there's still
  297.      * some text process
  298.      */
  299. #define EOF_PENDING 1
  300. #define EOF_DONE 2
  301.     };
  302.  
  303. static YY_BUFFER_STATE yy_current_buffer;
  304.  
  305. /* we provide macros for accessing buffer states in case in the
  306.  * future we want to put the buffer states in a more general
  307.  * "scanner state"
  308.  */
  309. #define YY_CURRENT_BUFFER yy_current_buffer
  310.  
  311.  
  312. /* yy_hold_char holds the character lost when yytext is formed */
  313. static YY_CHAR yy_hold_char;
  314.  
  315. static int yy_n_chars;        /* number of characters read into yy_ch_buf */
  316.  
  317.  
  318.  
  319. #ifndef YY_USER_ACTION
  320. #define YY_USER_ACTION
  321. #endif
  322.  
  323. #ifndef YY_USER_INIT
  324. #define YY_USER_INIT
  325. #endif
  326.  
  327. extern YY_CHAR *yytext;
  328. extern int yyleng;
  329. extern FILE *yyin, *yyout;
  330.  
  331. YY_CHAR *yytext;
  332. int yyleng;
  333.  
  334. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  335.  
  336. #define YY_END_OF_BUFFER 121
  337. typedef int yy_state_type;
  338. static const short int yy_accept[341] =
  339.     {   0,
  340.         0,    0,    0,    0,    0,    0,  119,  119,    0,    0,
  341.         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  342.         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  343.         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  344.         0,    0,    0,    0,  121,   19,    7,   18,   19,   16,
  345.         1,   17,   19,   19,   19,   15,   67,   59,   60,   53,
  346.        67,   66,   51,   67,   67,   67,   50,   49,   67,   52,
  347.       120,   47,  119,  119,   28,   29,   28,   28,   28,   28,
  348.        31,   30,   32,   73,  120,   69,   70,   72,   74,   88,
  349.        89,   86,   85,   87,   75,   77,   76,   75,   81,   80,
  350.  
  351.        81,   81,   83,   83,   83,   84,   99,  104,  103,  105,
  352.       105,  100,  100,  100,   97,   98,  120,   33,   91,   90,
  353.        22,   24,   23,  107,  109,  108,  111,  113,  114,  115,
  354.        95,   95,   96,   95,   95,   95,   95,   38,   35,   34,
  355.        38,   38,   44,   42,   45,   44,   44,   41,   41,   41,
  356.        40,   41,    7,   18,    0,   16,    1,   17,    0,    2,
  357.        14,    8,    0,   12,    4,    0,    0,    5,    0,    3,
  358.        15,   59,   60,    0,    0,   56,    0,    0,    0,  117,
  359.       117,  117,   55,   54,   55,   50,   49,   63,   50,    0,
  360.        47,   46,  119,  119,   28,   28,   28,   28,   28,   31,
  361.  
  362.        30,   71,   72,   85,  118,  118,  118,   78,   79,   82,
  363.        99,    0,  102,    0,  101,  100,  100,  100,    0,   33,
  364.        22,   20,  107,  106,  111,  112,   95,   95,   95,   92,
  365.        95,   95,   95,   38,   35,   38,   38,   42,    0,   43,
  366.        43,   43,   42,   40,    0,   13,   14,    8,    8,    0,
  367.        12,    4,    0,    0,    0,    5,    0,    6,   57,    0,
  368.        58,    0,   64,    0,    0,  117,  117,   55,   55,   65,
  369.        63,   28,   28,   28,   25,    0,  118,  118,  100,  100,
  370.         0,   21,   92,   92,   95,   95,   38,   38,    0,   39,
  371.        43,   43,    0,   11,    4,    0,   11,    0,    0,    5,
  372.  
  373.         0,    0,    0,  117,   28,   28,  118,  100,  100,   95,
  374.        95,   38,   38,   43,    0,    9,    0,    0,    0,   28,
  375.        28,  100,  100,   95,   95,   38,   38,    0,    0,   26,
  376.        27,   93,   94,   93,   94,   36,   37,   10,   62,    0
  377.     } ;
  378.  
  379. static const YY_CHAR yy_ec[256] =
  380.     {   0,
  381.         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
  382.         1,    4,    1,    1,    1,    1,    1,    1,    1,    1,
  383.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  384.         1,    5,    1,    6,    7,    8,    9,    1,   10,   11,
  385.        11,   12,   11,   13,   14,   11,   15,   16,   16,   16,
  386.        16,   16,   16,   16,   16,   16,   16,    1,    1,   17,
  387.         1,   18,   11,    1,   24,   25,   26,   27,   28,   29,
  388.        23,   23,   23,   30,   31,   23,   32,   33,   34,   31,
  389.        23,   35,   36,   37,   38,   23,   23,   39,   40,   23,
  390.        19,   20,   21,   22,   23,    1,   24,   25,   26,   27,
  391.  
  392.        28,   29,   23,   23,   23,   30,   31,   23,   32,   33,
  393.        34,   31,   23,   35,   36,   37,   38,   23,   23,   39,
  394.        40,   23,   41,   42,   43,    1,    1,    1,    1,    1,
  395.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  396.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  397.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  398.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  399.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  400.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  401.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  402.  
  403.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  404.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  405.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  406.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  407.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  408.         1,    1,    1,    1,    1
  409.     } ;
  410.  
  411. static const YY_CHAR yy_meta[44] =
  412.     {   0,
  413.         1,    2,    3,    2,    2,    4,    1,    1,    1,    5,
  414.         1,    6,    1,    7,    5,    8,    1,    1,    1,    9,
  415.        10,    1,   11,   12,   12,   12,   12,   12,   12,   11,
  416.        11,   11,   11,   11,   11,   11,   11,   11,   11,   11,
  417.         5,    1,   13
  418.     } ;
  419.  
  420. static const short int yy_base[404] =
  421.     {   0,
  422.         0,   43,   85,  126, 1371, 1370, 1369, 1353,  168, 1346,
  423.       104,  108,  211,    0, 1332, 1320,  120,  252,   95,  119,
  424.       137,  144,  100,  141,  295,    0, 1327, 1323,  113,  336,
  425.       254,  255,  257,  258,  253,  268,  379,    0,  338,  421,
  426.         0,    0,  273,  460, 1325, 1442,  281, 1442, 1287,    0,
  427.       287, 1442, 1279,  472, 1257,    0, 1442,  425, 1442, 1442,
  428.       147, 1442, 1239, 1235,   78,  513,  433, 1442,   83, 1442,
  429.      1248,    0, 1247, 1442,    0, 1442,    0, 1218, 1205, 1194,
  430.         0,  342, 1442, 1442, 1442, 1442, 1202,    0, 1442, 1442,
  431.      1442, 1442, 1201, 1442, 1442, 1442, 1442,   79, 1442, 1442,
  432.  
  433.       103, 1198, 1442,    0,  248, 1442,    0, 1442, 1442,  252,
  434.      1199,    0, 1173, 1158, 1442, 1442, 1185, 1442, 1442, 1442,
  435.         0, 1442, 1170,    0, 1442, 1152,    0, 1442, 1442,    0,
  436.         0,  346, 1442, 1123,    0, 1125, 1105,    0,  352, 1442,
  437.      1116, 1103, 1442,  356, 1442, 1100,  329, 1442,  360, 1093,
  438.      1101,  333,  441, 1442,  445,    0,  449, 1442, 1101, 1442,
  439.       365,  453, 1094,  466,    0,  480,  330,    0, 1095, 1442,
  440.         0,  555, 1442, 1044, 1077, 1442, 1051,  133,  456, 1442,
  441.      1059,    0,    0, 1442,  584,  563, 1442,    0, 1442, 1071,
  442.         0, 1442, 1063, 1442,    0,    0, 1010, 1007,  627,    0,
  443.  
  444.       484, 1442,    0,  998, 1442,  992,    0, 1442, 1442, 1442,
  445.         0,  421, 1442,    0, 1442,    0,  971,  964,  992, 1442,
  446.         0,  962,    0, 1442,    0, 1442,    0,  488,  921,  670,
  447.         0,  717,  714,    0,  497,  715,  712,  569,  573, 1442,
  448.       727,    0,  577,  726,  581, 1442,  585,    0,  590,  738,
  449.       597,    0,  712,  683,  691,    0,  670, 1442, 1442,  623,
  450.      1442,  591, 1442,  458,  702,  590,    0,    0,    0, 1442,
  451.         0,  576,  569,    0, 1442,  593,  575,    0,  560,  546,
  452.       567, 1442,    0,    0,  541,  529,  534,  527,  730, 1442,
  453.       500,    0,  509, 1442,    0,  734, 1442,  468,  467,    0,
  454.  
  455.       462,  704,  724, 1442,  461,  438, 1442,  440,  425,  433,
  456.       405,  413,  398, 1442,  404, 1442,  359,  259,  332,  338,
  457.       346,  334,  331,  257,  253,  226,  137,  133,   81,    0,
  458.         0,    0,    0,    0,    0,    0,    0, 1442, 1442, 1442,
  459.       753,  766,  779,  792,  805,  818,  831,  844,  857,  870,
  460.       883,  896,  909,  922,  935,  948,  955,  967,  980,  986,
  461.       998, 1011, 1024, 1037, 1050, 1063, 1070, 1082, 1089, 1101,
  462.      1114, 1127, 1140, 1150, 1157, 1169, 1182, 1195, 1208, 1221,
  463.      1234, 1241, 1253, 1266, 1279, 1282, 1284, 1296, 1309, 1315,
  464.      1327, 1339, 1345, 1357, 1363, 1375, 1382, 1388, 1393, 1405,
  465.  
  466.      1411, 1423, 1429
  467.     } ;
  468.  
  469. static const short int yy_def[404] =
  470.     {   0,
  471.       340,  340,  341,  341,  342,  342,  343,  343,  340,    9,
  472.       344,  344,  340,   13,  345,  345,  346,  346,  347,  347,
  473.       348,  348,  349,  349,  340,   25,  350,  350,  345,  345,
  474.       351,  351,  352,  352,  353,  353,  340,   37,  354,  354,
  475.        37,   37,  355,  356,  340,  340,  340,  340,  340,  357,
  476.       340,  340,  358,  359,  340,  360,  340,  340,  340,  340,
  477.       340,  340,  340,  361,  362,  340,  340,  340,  340,  340,
  478.       363,  364,  365,  340,  366,  340,  367,  367,  367,  366,
  479.       368,  340,  340,  340,  340,  340,  340,  369,  340,  340,
  480.       340,  340,  340,  340,  340,  340,  340,  362,  340,  340,
  481.  
  482.       370,  371,  340,  372,  362,  340,  373,  340,  340,  374,
  483.       340,  375,  375,  375,  340,  340,  376,  340,  340,  340,
  484.       377,  340,  340,  378,  340,  340,  379,  340,  340,  380,
  485.       381,  381,  340,  381,  382,  382,  382,  383,  340,  340,
  486.       383,  383,  340,  340,  340,  340,  384,  340,  340,  340,
  487.       340,  384,  340,  340,  340,  357,  340,  340,  358,  340,
  488.       340,  385,  340,  340,  386,  340,  340,  387,  388,  340,
  489.       360,  340,  340,  340,  389,  340,  340,  361,  361,  340,
  490.       340,  390,  391,  340,  391,  340,  340,  392,  340,  363,
  491.       364,  340,  365,  340,  366,  367,  367,  367,  340,  368,
  492.  
  493.       340,  340,  369,  340,  340,  340,  393,  340,  340,  340,
  494.       373,  374,  340,  374,  340,  375,  375,  375,  376,  340,
  495.       377,  394,  378,  340,  379,  340,  381,  381,  381,  340,
  496.       382,  382,  382,  383,  340,  383,  383,  340,  340,  340,
  497.       340,  395,  340,  340,  340,  340,  340,  385,  385,  396,
  498.       340,  397,  396,  340,  340,  398,  388,  340,  340,  389,
  499.       340,  340,  340,  361,  361,  340,  399,  391,  185,  340,
  500.       392,  367,  367,  199,  340,  400,  340,  401,  375,  375,
  501.       394,  340,  230,  402,  382,  382,  383,  383,  340,  340,
  502.       340,  403,  396,  340,  397,  396,  340,  340,  340,  398,
  503.  
  504.       340,  361,  265,  340,  367,  367,  340,  375,  375,  382,
  505.       382,  383,  383,  340,  340,  340,  340,  361,  361,  367,
  506.       367,  375,  375,  382,  382,  383,  383,  340,  340,  367,
  507.       367,  375,  375,  382,  382,  383,  383,  340,  340,    0,
  508.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  509.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  510.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  511.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  512.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  513.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  514.  
  515.       340,  340,  340
  516.     } ;
  517.  
  518. static const short int yy_nxt[1486] =
  519.     {   0,
  520.        46,   47,   48,   47,   47,   46,   46,   46,   49,   46,
  521.        46,   46,   46,   46,   46,   46,   46,   46,   46,   46,
  522.        46,   46,   50,   50,   50,   50,   50,   50,   50,   50,
  523.        50,   50,   50,   50,   50,   50,   50,   50,   50,   50,
  524.        46,   46,   46,   46,   51,   52,   51,   51,   46,   53,
  525.        46,   54,   46,   46,   46,   46,   46,   55,   46,   46,
  526.        46,   46,   46,   46,   46,   56,   56,   56,   56,   56,
  527.        56,   56,   56,   56,   56,   56,   56,   56,   56,   56,
  528.        56,   56,   56,   46,   46,   46,   58,   59,   58,   58,
  529.        60,  188,   61,  181,  181,   62,   62,   96,  339,   62,
  530.  
  531.        97,   63,   85,   64,   65,   82,   83,   82,   82,   82,
  532.        83,   82,   82,  104,   98,  119,  182,  182,  206,  105,
  533.       106,   96,   91,  189,   97,   66,   62,   67,   68,   67,
  534.        67,   60,   92,   61,   69,   93,   62,   62,   98,   85,
  535.        62,  207,   63,   85,   64,   65,   85,   70,  176,  176,
  536.       100,  176,  179,  263,  104,  120,  101,  100,  102,  338,
  537.       105,  106,   94,  101,  337,  102,   66,   62,   75,   75,
  538.        76,   75,   75,   75,   75,   75,   75,   75,   75,   75,
  539.        75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
  540.        77,   77,   77,   77,   77,   77,   77,   77,   77,   77,
  541.  
  542.        77,   77,   78,   77,   77,   77,   77,   79,   75,   75,
  543.        75,   84,   84,   85,   84,   84,   84,   84,   84,   84,
  544.        84,   84,   84,   86,   84,   84,   84,   84,   87,   84,
  545.        84,   84,   84,   88,   88,   88,   88,   88,   88,   88,
  546.        88,   88,   88,   88,   88,   88,   88,   88,   88,   88,
  547.        88,   84,   84,   84,   91,  128,  122,  122,  129,  125,
  548.       125,  213,  336,  181,   92,  123,  123,   93,  126,  126,
  549.       128,  214,  130,  129,  144,  145,  144,  144,  179,  263,
  550.       335,  146,  153,  154,  153,  153,  182,  130,  157,  158,
  551.       157,  157,  147,  334,   94,  107,  107,  108,  107,  107,
  552.  
  553.       109,  107,  107,  107,  110,  107,  107,  107,  107,  111,
  554.       107,  107,  107,  107,  107,  107,  107,  112,  112,  112,
  555.       112,  112,  112,  112,  112,  112,  112,  112,  112,  113,
  556.       112,  112,  112,  112,  114,  115,  107,  116,  119,  139,
  557.       140,  139,  139,  201,  241,  201,  201,  228,  241,  228,
  558.       228,  179,  263,  235,  229,  235,  235,  238,  333,  238,
  559.       238,  243,  254,  243,  243,  255,  247,  242,  247,  247,
  560.       332,  242,  141,  331,  330,  244,  329,  142,  120,  131,
  561.       132,  133,  132,  132,  131,  131,  131,  134,  131,  131,
  562.       131,  131,  131,  131,  131,  131,  131,  131,  131,  131,
  563.  
  564.       131,  135,  135,  135,  135,  135,  135,  135,  135,  135,
  565.       135,  135,  135,  136,  135,  135,  135,  135,  137,  131,
  566.       131,  131,  139,  140,  139,  139,  172,  173,  172,  172,
  567.       213,  328,  327,  174,  186,  187,  186,  186,  326,  325,
  568.       214,  174,  153,  154,  153,  153,  245,  246,  245,  245,
  569.       157,  158,  157,  157,  249,  141,  249,  249,  324,  323,
  570.       142,  149,  145,  149,  149,  322,  175,  251,  150,  251,
  571.       251,  264,  321,  302,  175,  151,  178,  179,  263,  152,
  572.       162,  245,  246,  245,  253,  201,  320,  201,  201,  228,
  573.       317,  228,  228,  316,  265,  163,  229,  164,  235,  163,
  574.  
  575.       235,  235,  163,  315,  163,  163,  164,  165,  166,  167,
  576.       168,  294,  169,  183,  183,  240,  183,  183,  183,  183,
  577.       183,  183,  183,  183,  183,  183,  183,  183,  184,  183,
  578.       183,  183,  183,  183,  183,  185,  185,  185,  185,  185,
  579.       185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  580.       185,  185,  185,  183,  183,  183,  172,  173,  172,  172,
  581.       313,  312,  311,  174,  186,  187,  186,  186,  310,  282,
  582.       238,  174,  238,  238,  289,  290,  289,  289,  243,  309,
  583.       243,  243,  245,  246,  245,  245,  247,  308,  247,  247,
  584.       205,  249,  244,  249,  249,  275,  175,  269,  251,  269,
  585.  
  586.       251,  251,  306,  305,  175,  180,  269,  269,  269,  269,
  587.       269,  269,  269,  269,  269,  269,  269,  269,  269,  269,
  588.       269,  269,  269,  269,  301,  261,  270,  274,  274,  275,
  589.       274,  274,  274,  274,  274,  274,  274,  274,  274,  274,
  590.       274,  274,  274,  274,  274,  274,  274,  274,  274,  276,
  591.       276,  276,  276,  276,  276,  276,  276,  276,  276,  276,
  592.       276,  276,  276,  276,  276,  276,  276,  274,  274,  274,
  593.       283,  283,  258,  283,  283,  283,  283,  283,  283,  283,
  594.       283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
  595.       283,  283,  284,  284,  284,  284,  284,  284,  284,  284,
  596.  
  597.       284,  284,  284,  284,  284,  284,  284,  284,  284,  284,
  598.       283,  283,  283,  296,  297,  296,  296,  303,  299,  318,
  599.       298,  179,  263,  179,  263,  303,  303,  303,  303,  303,
  600.       303,  289,  290,  289,  289,  296,  297,  296,  296,  319,
  601.       294,  244,  291,  288,  287,  286,  285,  319,  319,  319,
  602.       319,  319,  319,   57,   57,   57,   57,   57,   57,   57,
  603.        57,   57,   57,   57,   57,   57,   71,   71,   71,   71,
  604.        71,   71,   71,   71,   71,   71,   71,   71,   71,   73,
  605.        73,   73,   73,   73,   73,   73,   73,   73,   73,   73,
  606.        73,   73,   81,   81,   81,   81,   81,   81,   81,   81,
  607.  
  608.        81,   81,   81,   81,   81,   85,   85,   85,   85,   85,
  609.        85,   85,   85,   85,   85,   85,   85,   85,   90,   90,
  610.        90,   90,   90,   90,   90,   90,   90,   90,   90,   90,
  611.        90,   95,   95,   95,   95,   95,   95,   95,   95,   95,
  612.        95,   95,   95,   95,   99,   99,   99,   99,   99,   99,
  613.        99,   99,   99,   99,   99,   99,   99,  103,  103,  103,
  614.       103,  103,  103,  103,  103,  103,  103,  103,  103,  103,
  615.       117,  117,  117,  117,  117,  117,  117,  117,  117,  117,
  616.       117,  117,  117,  121,  121,  121,  121,  121,  121,  121,
  617.       121,  121,  121,  121,  121,  121,  124,  124,  124,  124,
  618.  
  619.       124,  124,  124,  124,  124,  124,  124,  124,  124,  127,
  620.       127,  127,  127,  127,  127,  127,  127,  127,  127,  127,
  621.       127,  127,  138,  138,  138,  138,  138,  138,  138,  138,
  622.       138,  138,  138,  138,  138,  143,  143,  143,  143,  143,
  623.       143,  143,  143,  143,  143,  143,  143,  143,  148,  148,
  624.       148,  148,  148,  148,  148,  148,  148,  148,  148,  148,
  625.       148,  156,  156,  230,  282,  156,  156,  159,  159,  159,
  626.       159,  159,  159,  159,  159,  159,  159,  159,  159,  159,
  627.       161,  161,  161,  161,  161,  161,  161,  161,  161,  161,
  628.       161,  161,  171,  171,  220,  280,  171,  171,  178,  178,
  629.  
  630.       279,  178,  178,  178,  178,  178,  178,  277,  178,  178,
  631.       178,  180,  180,  204,  180,  180,  180,  180,  180,  180,
  632.       180,  180,  180,  180,  190,  190,  190,  190,  190,  190,
  633.       190,  190,  190,  190,  190,  190,  190,  192,  273,  272,
  634.       192,  192,  192,  192,  192,  192,  192,  192,  192,  192,
  635.       193,  193,  193,  193,  193,  193,  193,  193,  193,  193,
  636.       193,  193,  193,  195,  195,  194,  195,  195,  195,  195,
  637.       195,  195,  195,  191,  266,  195,  196,  196,  262,  261,
  638.       196,  196,  200,  200,  259,  200,  200,  200,  200,  200,
  639.       200,  200,  200,  200,  200,  203,  203,  258,  250,  203,
  640.  
  641.       203,  205,  205,  160,  205,  205,  205,  205,  205,  205,
  642.       205,  205,  205,  205,  208,  208,  244,  208,  208,  208,
  643.       208,  208,  208,  208,  208,  208,  208,  210,  210,  239,
  644.       210,  210,  210,  210,  210,  210,  239,  210,  210,  210,
  645.       211,  211,  237,  236,  233,  211,  211,  211,  211,  211,
  646.       212,  212,  232,  212,  212,  212,  212,  212,  212,  212,
  647.       212,  212,  212,  216,  216,  230,  224,  216,  216,  219,
  648.       219,  219,  219,  219,  219,  219,  219,  219,  219,  219,
  649.       219,  219,  221,  221,  222,  221,  221,  220,  221,  221,
  650.       221,  221,  221,  221,  221,  223,  223,  218,  223,  223,
  651.  
  652.       217,  223,  223,  223,  223,  223,  223,  223,  225,  225,
  653.       215,  209,  225,  225,  225,  225,  204,  225,  225,  225,
  654.       225,  226,  226,  202,  226,  226,  226,  226,  226,  226,
  655.       226,  226,  226,  226,  227,  227,  199,  227,  227,  227,
  656.       227,  227,  227,  227,  198,  197,  227,  231,  231,  194,
  657.       191,  231,  231,  234,  179,  177,  234,  234,  234,  234,
  658.       234,  234,  234,  234,  234,  234,  240,  240,  170,  240,
  659.       240,  240,  240,  240,  240,  240,  240,  240,  240,  248,
  660.       248,  160,  248,  248,  248,  248,  248,  248,  248,  248,
  661.       248,  248,  252,  252,  256,  256,  257,  257,  257,  257,
  662.  
  663.       257,  257,  257,  257,  257,  257,  257,  257,  257,  260,
  664.       260,  260,  260,  260,  260,  260,  260,  260,  260,  260,
  665.       260,  260,  267,  155,  340,  118,  267,  268,  268,  118,
  666.       268,  268,  268,  268,  268,  268,  268,  268,  268,  271,
  667.       271,   89,  271,  271,  271,  271,  271,  271,  271,  271,
  668.       271,  271,  278,   89,   80,   74,  278,  281,  281,  281,
  669.       281,  281,  281,  281,  281,  281,  281,  281,  281,  281,
  670.       292,   74,   72,   72,  292,  293,  293,  293,  293,  293,
  671.       293,  293,  293,  293,  293,  293,  293,  293,  295,  295,
  672.       340,  340,  295,  295,  300,  300,  340,  340,  300,  300,
  673.  
  674.       304,  340,  340,  340,  304,  276,  276,  276,  276,  276,
  675.       276,  276,  276,  276,  276,  276,  276,  276,  307,  340,
  676.       340,  340,  307,  284,  284,  340,  284,  284,  284,  284,
  677.       284,  284,  284,  284,  284,  284,  314,  340,  340,  340,
  678.       314,   45,  340,  340,  340,  340,  340,  340,  340,  340,
  679.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  680.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  681.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  682.       340,  340,  340,  340,  340
  683.     } ;
  684.  
  685. static const short int yy_chk[1486] =
  686.     {   0,
  687.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  688.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  689.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  690.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  691.         1,    1,    1,    2,    2,    2,    2,    2,    2,    2,
  692.         2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  693.         2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  694.         2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  695.         2,    2,    2,    2,    2,    2,    3,    3,    3,    3,
  696.         3,   69,    3,   65,   98,    3,    3,   19,  329,    3,
  697.  
  698.        19,    3,   23,    3,    3,   11,   11,   11,   11,   12,
  699.        12,   12,   12,   23,   19,   29,   65,   98,  101,   23,
  700.        23,   20,   17,   69,   20,    3,    3,    4,    4,    4,
  701.         4,    4,   17,    4,    4,   17,    4,    4,   20,   21,
  702.         4,  101,    4,   24,    4,    4,   22,    4,   61,   61,
  703.        21,   61,  178,  178,   24,   29,   21,   22,   21,  328,
  704.        24,   24,   17,   22,  327,   22,    4,    4,    9,    9,
  705.         9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  706.         9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  707.         9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  708.  
  709.         9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  710.         9,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  711.        13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  712.        13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  713.        13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  714.        13,   13,   13,   13,   18,   35,   31,   32,   35,   33,
  715.        34,  110,  326,  105,   18,   31,   32,   18,   33,   34,
  716.        36,  110,   35,   36,   43,   43,   43,   43,  318,  318,
  717.       325,   43,   47,   47,   47,   47,  105,   36,   51,   51,
  718.        51,   51,   43,  324,   18,   25,   25,   25,   25,   25,
  719.  
  720.        25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  721.        25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  722.        25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  723.        25,   25,   25,   25,   25,   25,   25,   25,   30,   39,
  724.        39,   39,   39,   82,  147,   82,   82,  132,  152,  132,
  725.       132,  319,  319,  139,  132,  139,  139,  144,  323,  144,
  726.       144,  149,  167,  149,  149,  167,  161,  147,  161,  161,
  727.       322,  152,   39,  321,  320,  149,  317,   39,   30,   37,
  728.        37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  729.        37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  730.  
  731.        37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  732.        37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  733.        37,   37,   40,   40,   40,   40,   58,   58,   58,   58,
  734.       212,  315,  313,   58,   67,   67,   67,   67,  312,  311,
  735.       212,   67,  153,  153,  153,  153,  155,  155,  155,  155,
  736.       157,  157,  157,  157,  162,   40,  162,  162,  310,  309,
  737.        40,   44,   44,   44,   44,  308,   58,  164,   44,  164,
  738.       164,  179,  306,  264,   67,   44,  179,  264,  264,   44,
  739.        54,  166,  166,  166,  166,  201,  305,  201,  201,  228,
  740.       301,  228,  228,  299,  179,   54,  228,   54,  235,   54,
  741.  
  742.       235,  235,   54,  298,   54,   54,   54,   54,   54,   54,
  743.        54,  293,   54,   66,   66,  291,   66,   66,   66,   66,
  744.        66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  745.        66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  746.        66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  747.        66,   66,   66,   66,   66,   66,  172,  172,  172,  172,
  748.       288,  287,  286,  172,  186,  186,  186,  186,  285,  281,
  749.       238,  186,  238,  238,  239,  239,  239,  239,  243,  280,
  750.       243,  243,  245,  245,  245,  245,  247,  279,  247,  247,
  751.       277,  249,  243,  249,  249,  276,  172,  185,  251,  185,
  752.  
  753.       251,  251,  273,  272,  186,  266,  185,  185,  185,  185,
  754.       185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  755.       185,  185,  185,  185,  262,  260,  185,  199,  199,  199,
  756.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  757.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  758.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  759.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  760.       230,  230,  257,  230,  230,  230,  230,  230,  230,  230,
  761.       230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  762.       230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  763.  
  764.       230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  765.       230,  230,  230,  253,  253,  253,  253,  265,  255,  302,
  766.       254,  265,  265,  302,  302,  265,  265,  265,  265,  265,
  767.       265,  289,  289,  289,  289,  296,  296,  296,  296,  303,
  768.       250,  244,  241,  237,  236,  233,  232,  303,  303,  303,
  769.       303,  303,  303,  341,  341,  341,  341,  341,  341,  341,
  770.       341,  341,  341,  341,  341,  341,  342,  342,  342,  342,
  771.       342,  342,  342,  342,  342,  342,  342,  342,  342,  343,
  772.       343,  343,  343,  343,  343,  343,  343,  343,  343,  343,
  773.       343,  343,  344,  344,  344,  344,  344,  344,  344,  344,
  774.  
  775.       344,  344,  344,  344,  344,  345,  345,  345,  345,  345,
  776.       345,  345,  345,  345,  345,  345,  345,  345,  346,  346,
  777.       346,  346,  346,  346,  346,  346,  346,  346,  346,  346,
  778.       346,  347,  347,  347,  347,  347,  347,  347,  347,  347,
  779.       347,  347,  347,  347,  348,  348,  348,  348,  348,  348,
  780.       348,  348,  348,  348,  348,  348,  348,  349,  349,  349,
  781.       349,  349,  349,  349,  349,  349,  349,  349,  349,  349,
  782.       350,  350,  350,  350,  350,  350,  350,  350,  350,  350,
  783.       350,  350,  350,  351,  351,  351,  351,  351,  351,  351,
  784.       351,  351,  351,  351,  351,  351,  352,  352,  352,  352,
  785.  
  786.       352,  352,  352,  352,  352,  352,  352,  352,  352,  353,
  787.       353,  353,  353,  353,  353,  353,  353,  353,  353,  353,
  788.       353,  353,  354,  354,  354,  354,  354,  354,  354,  354,
  789.       354,  354,  354,  354,  354,  355,  355,  355,  355,  355,
  790.       355,  355,  355,  355,  355,  355,  355,  355,  356,  356,
  791.       356,  356,  356,  356,  356,  356,  356,  356,  356,  356,
  792.       356,  357,  357,  229,  222,  357,  357,  358,  358,  358,
  793.       358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
  794.       359,  359,  359,  359,  359,  359,  359,  359,  359,  359,
  795.       359,  359,  360,  360,  219,  218,  360,  360,  361,  361,
  796.  
  797.       217,  361,  361,  361,  361,  361,  361,  206,  361,  361,
  798.       361,  362,  362,  204,  362,  362,  362,  362,  362,  362,
  799.       362,  362,  362,  362,  363,  363,  363,  363,  363,  363,
  800.       363,  363,  363,  363,  363,  363,  363,  364,  198,  197,
  801.       364,  364,  364,  364,  364,  364,  364,  364,  364,  364,
  802.       365,  365,  365,  365,  365,  365,  365,  365,  365,  365,
  803.       365,  365,  365,  366,  366,  193,  366,  366,  366,  366,
  804.       366,  366,  366,  190,  181,  366,  367,  367,  177,  175,
  805.       367,  367,  368,  368,  174,  368,  368,  368,  368,  368,
  806.       368,  368,  368,  368,  368,  369,  369,  169,  163,  369,
  807.  
  808.       369,  370,  370,  159,  370,  370,  370,  370,  370,  370,
  809.       370,  370,  370,  370,  371,  371,  151,  371,  371,  371,
  810.       371,  371,  371,  371,  371,  371,  371,  372,  372,  150,
  811.       372,  372,  372,  372,  372,  372,  146,  372,  372,  372,
  812.       373,  373,  142,  141,  137,  373,  373,  373,  373,  373,
  813.       374,  374,  136,  374,  374,  374,  374,  374,  374,  374,
  814.       374,  374,  374,  375,  375,  134,  126,  375,  375,  376,
  815.       376,  376,  376,  376,  376,  376,  376,  376,  376,  376,
  816.       376,  376,  377,  377,  123,  377,  377,  117,  377,  377,
  817.       377,  377,  377,  377,  377,  378,  378,  114,  378,  378,
  818.  
  819.       113,  378,  378,  378,  378,  378,  378,  378,  379,  379,
  820.       111,  102,  379,  379,  379,  379,   93,  379,  379,  379,
  821.       379,  380,  380,   87,  380,  380,  380,  380,  380,  380,
  822.       380,  380,  380,  380,  381,  381,   80,  381,  381,  381,
  823.       381,  381,  381,  381,   79,   78,  381,  382,  382,   73,
  824.        71,  382,  382,  383,   64,   63,  383,  383,  383,  383,
  825.       383,  383,  383,  383,  383,  383,  384,  384,   55,  384,
  826.       384,  384,  384,  384,  384,  384,  384,  384,  384,  385,
  827.       385,   53,  385,  385,  385,  385,  385,  385,  385,  385,
  828.       385,  385,  386,  386,  387,  387,  388,  388,  388,  388,
  829.  
  830.       388,  388,  388,  388,  388,  388,  388,  388,  388,  389,
  831.       389,  389,  389,  389,  389,  389,  389,  389,  389,  389,
  832.       389,  389,  390,   49,   45,   28,  390,  391,  391,   27,
  833.       391,  391,  391,  391,  391,  391,  391,  391,  391,  392,
  834.       392,   16,  392,  392,  392,  392,  392,  392,  392,  392,
  835.       392,  392,  393,   15,   10,    8,  393,  394,  394,  394,
  836.       394,  394,  394,  394,  394,  394,  394,  394,  394,  394,
  837.       395,    7,    6,    5,  395,  396,  396,  396,  396,  396,
  838.       396,  396,  396,  396,  396,  396,  396,  396,  397,  397,
  839.         0,    0,  397,  397,  398,  398,    0,    0,  398,  398,
  840.  
  841.       399,    0,    0,    0,  399,  400,  400,  400,  400,  400,
  842.       400,  400,  400,  400,  400,  400,  400,  400,  401,    0,
  843.         0,    0,  401,  402,  402,    0,  402,  402,  402,  402,
  844.       402,  402,  402,  402,  402,  402,  403,    0,    0,    0,
  845.       403,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  846.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  847.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  848.       340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  849.       340,  340,  340,  340,  340
  850.     } ;
  851.  
  852. static yy_state_type yy_last_accepting_state;
  853. static YY_CHAR *yy_last_accepting_cpos;
  854.  
  855. /* the intent behind this definition is that it'll catch
  856.  * any uses of REJECT which flex missed
  857.  */
  858. #define REJECT reject_used_but_not_detected
  859. #define yymore() yymore_used_but_not_detected
  860. #define YY_MORE_ADJ 0
  861.  
  862. /* these variables are all declared out here so that section 3 code can
  863.  * manipulate them
  864.  */
  865. /* points to current character in buffer */
  866. static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
  867. static int yy_init = 1;        /* whether we need to initialize */
  868. static int yy_start = 0;    /* start state number */
  869.  
  870. /* flag which is used to allow yywrap()'s to do buffer switches
  871.  * instead of setting up a fresh yyin.  A bit of a hack ...
  872.  */
  873. static int yy_did_buffer_switch_on_eof;
  874.  
  875. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  876. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  877. static int yy_get_next_buffer YY_PROTO(( void ));
  878. static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
  879. void yyrestart YY_PROTO(( FILE *input_file ));
  880. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  881. void yy_load_buffer_state YY_PROTO(( void ));
  882. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  883. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  884. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  885.  
  886. #define yy_new_buffer yy_create_buffer
  887.  
  888. #ifdef __cplusplus
  889. static int yyinput YY_PROTO(( void ));
  890. #else
  891. static int input YY_PROTO(( void ));
  892. #endif
  893.  
  894. YY_DECL
  895.     {
  896.     register yy_state_type yy_current_state;
  897.     register YY_CHAR *yy_cp, *yy_bp;
  898.     register int yy_act;
  899.  
  900.  
  901.     static int bracelevel, didadef;
  902.     int i, indented_code, checking_used, new_xlation;
  903.     int doing_codeblock = false;
  904.     Char nmdef[MAXLINE], myesc();
  905.  
  906.  
  907.     if ( yy_init )
  908.     {
  909.     YY_USER_INIT;
  910.  
  911.     if ( ! yy_start )
  912.         yy_start = 1;    /* first start state */
  913.  
  914.     if ( ! yyin )
  915.         yyin = stdin;
  916.  
  917.     if ( ! yyout )
  918.         yyout = stdout;
  919.  
  920.     if ( yy_current_buffer )
  921.         yy_init_buffer( yy_current_buffer, yyin );
  922.     else
  923.         yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  924.  
  925.     yy_load_buffer_state();
  926.  
  927.     yy_init = 0;
  928.     }
  929.  
  930.     while ( 1 )        /* loops until end-of-file is reached */
  931.     {
  932.     yy_cp = yy_c_buf_p;
  933.  
  934.     /* support of yytext */
  935.     *yy_cp = yy_hold_char;
  936.  
  937.     /* yy_bp points to the position in yy_ch_buf of the start of the
  938.      * current run.
  939.      */
  940.     yy_bp = yy_cp;
  941.  
  942.     yy_current_state = yy_start;
  943.     if ( yy_bp[-1] == '\n' )
  944.         ++yy_current_state;
  945. yy_match:
  946.     do
  947.         {
  948.         register YY_CHAR yy_c = yy_ec[*yy_cp];
  949.         if ( yy_accept[yy_current_state] )
  950.         {
  951.         yy_last_accepting_state = yy_current_state;
  952.         yy_last_accepting_cpos = yy_cp;
  953.         }
  954.         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  955.         {
  956.         yy_current_state = yy_def[yy_current_state];
  957.         if ( yy_current_state >= 341 )
  958.             yy_c = yy_meta[yy_c];
  959.         }
  960.         yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  961.         ++yy_cp;
  962.         }
  963.     while ( yy_current_state != 340 );
  964.     yy_cp = yy_last_accepting_cpos;
  965.     yy_current_state = yy_last_accepting_state;
  966.  
  967. yy_find_action:
  968.     yy_act = yy_accept[yy_current_state];
  969.  
  970.     YY_DO_BEFORE_ACTION;
  971.     YY_USER_ACTION;
  972.  
  973. do_action:    /* this label is used only to access EOF actions */
  974.  
  975.  
  976.     switch ( yy_act )
  977.         {
  978.         case 0: /* must backtrack */
  979.         /* undo the effects of YY_DO_BEFORE_ACTION */
  980.         *yy_cp = yy_hold_char;
  981.         yy_cp = yy_last_accepting_cpos;
  982.         yy_current_state = yy_last_accepting_state;
  983.         goto yy_find_action;
  984.  
  985. case 1:
  986. # line 90 "scan.l"
  987. indented_code = true; BEGIN(CODEBLOCK);
  988.     YY_BREAK
  989. case 2:
  990. # line 91 "scan.l"
  991. ++linenum; /* treat as a comment */
  992.     YY_BREAK
  993. case 3:
  994. # line 92 "scan.l"
  995. ECHO; BEGIN(C_COMMENT);
  996.     YY_BREAK
  997. case 4:
  998. # line 93 "scan.l"
  999. return ( SCDECL );
  1000.     YY_BREAK
  1001. case 5:
  1002. # line 94 "scan.l"
  1003. return ( XSCDECL );
  1004.     YY_BREAK
  1005. case 6:
  1006. # line 95 "scan.l"
  1007. {
  1008.             ++linenum;
  1009.             line_directive_out( stdout );
  1010.             indented_code = false;
  1011.             BEGIN(CODEBLOCK);
  1012.             }
  1013.     YY_BREAK
  1014. case 7:
  1015. # line 102 "scan.l"
  1016. return ( WHITESPACE );
  1017.     YY_BREAK
  1018. case 8:
  1019. # line 104 "scan.l"
  1020. {
  1021.             sectnum = 2;
  1022.             line_directive_out( stdout );
  1023.             BEGIN(SECT2PROLOG);
  1024.             return ( SECTEND );
  1025.             }
  1026.     YY_BREAK
  1027. case 9:
  1028. # line 111 "scan.l"
  1029. {
  1030.     pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  1031.             checking_used = REALLY_USED; BEGIN(USED_LIST);
  1032.             }
  1033.     YY_BREAK
  1034. case 10:
  1035. # line 115 "scan.l"
  1036. {
  1037.             checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  1038.     pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  1039.             checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  1040.             }
  1041.     YY_BREAK
  1042. case 11:
  1043. # line 122 "scan.l"
  1044. {
  1045. #ifdef NOTDEF
  1046.             fprintf( stderr,
  1047.                  "old-style lex command at line %d ignored:\n\t%s",
  1048.                  linenum, yytext );
  1049. #endif
  1050.             ++linenum;
  1051.             }
  1052.     YY_BREAK
  1053. case 12:
  1054. # line 131 "scan.l"
  1055. /* ignore old lex directive */
  1056.     YY_BREAK
  1057. case 13:
  1058. # line 133 "scan.l"
  1059. {
  1060.             ++linenum;
  1061.             xlation =
  1062.                 (int *) malloc( sizeof( int ) * (unsigned) csize );
  1063.  
  1064.             if ( ! xlation )
  1065.                 flexfatal(
  1066.                 "dynamic memory failure building %t table" );
  1067.  
  1068.             for ( i = 0; i < csize; ++i )
  1069.                 xlation[i] = 0;
  1070.  
  1071.             num_xlations = 0;
  1072.  
  1073.             BEGIN(XLATION);
  1074.             }
  1075.     YY_BREAK
  1076. case 14:
  1077. # line 150 "scan.l"
  1078. synerr( "unrecognized '%' directive" );
  1079.     YY_BREAK
  1080. case 15:
  1081. # line 152 "scan.l"
  1082. {
  1083.             (void) strcpy( nmstr, (char *) yytext );
  1084.             didadef = false;
  1085.             BEGIN(PICKUPDEF);
  1086.             }
  1087.     YY_BREAK
  1088. case 16:
  1089. # line 158 "scan.l"
  1090. RETURNNAME;
  1091.     YY_BREAK
  1092. case 17:
  1093. # line 159 "scan.l"
  1094. ++linenum; /* allows blank lines in section 1 */
  1095.     YY_BREAK
  1096. case 18:
  1097. # line 160 "scan.l"
  1098. ++linenum; return ( '\n' );
  1099.     YY_BREAK
  1100. case 19:
  1101. # line 161 "scan.l"
  1102. synerr( "illegal character" ); BEGIN(RECOVER);
  1103.     YY_BREAK
  1104. case 20:
  1105. # line 164 "scan.l"
  1106. ECHO; BEGIN(INITIAL);
  1107.     YY_BREAK
  1108. case 21:
  1109. # line 165 "scan.l"
  1110. ++linenum; ECHO; BEGIN(INITIAL);
  1111.     YY_BREAK
  1112. case 22:
  1113. # line 166 "scan.l"
  1114. ECHO;
  1115.     YY_BREAK
  1116. case 23:
  1117. # line 167 "scan.l"
  1118. ECHO;
  1119.     YY_BREAK
  1120. case 24:
  1121. # line 168 "scan.l"
  1122. ++linenum; ECHO;
  1123.     YY_BREAK
  1124. case 25:
  1125. # line 171 "scan.l"
  1126. ++linenum; BEGIN(INITIAL);
  1127.     YY_BREAK
  1128. case 26:
  1129. # line 172 "scan.l"
  1130. ECHO; CHECK_REJECT(yytext);
  1131.     YY_BREAK
  1132. case 27:
  1133. # line 173 "scan.l"
  1134. ECHO; CHECK_YYMORE(yytext);
  1135.     YY_BREAK
  1136. case 28:
  1137. # line 174 "scan.l"
  1138. ECHO;
  1139.     YY_BREAK
  1140. case 29:
  1141. # line 175 "scan.l"
  1142. {
  1143.             ++linenum;
  1144.             ECHO;
  1145.             if ( indented_code )
  1146.                 BEGIN(INITIAL);
  1147.             }
  1148.     YY_BREAK
  1149. case 30:
  1150. # line 183 "scan.l"
  1151. /* separates name and definition */
  1152.     YY_BREAK
  1153. case 31:
  1154. # line 185 "scan.l"
  1155. {
  1156.             (void) strcpy( (char *) nmdef, (char *) yytext );
  1157.  
  1158.             for ( i = strlen( (char *) nmdef ) - 1;
  1159.                   i >= 0 &&
  1160.                   nmdef[i] == ' ' || nmdef[i] == '\t';
  1161.                   --i )
  1162.                 ;
  1163.  
  1164.             nmdef[i + 1] = '\0';
  1165.  
  1166.                         ndinstal( nmstr, nmdef );
  1167.             didadef = true;
  1168.             }
  1169.     YY_BREAK
  1170. case 32:
  1171. # line 200 "scan.l"
  1172. {
  1173.             if ( ! didadef )
  1174.                 synerr( "incomplete name definition" );
  1175.             BEGIN(INITIAL);
  1176.             ++linenum;
  1177.             }
  1178.     YY_BREAK
  1179. case 33:
  1180. # line 207 "scan.l"
  1181. ++linenum; BEGIN(INITIAL); RETURNNAME;
  1182.     YY_BREAK
  1183. case 34:
  1184. # line 210 "scan.l"
  1185. ++linenum; BEGIN(INITIAL);
  1186.     YY_BREAK
  1187. case 35:
  1188. # line 211 "scan.l"
  1189.  
  1190.     YY_BREAK
  1191. case 36:
  1192. # line 212 "scan.l"
  1193. {
  1194.             if ( all_upper( yytext ) )
  1195.                 reject_really_used = checking_used;
  1196.             else
  1197.                 synerr( "unrecognized %used/%unused construct" );
  1198.             }
  1199.     YY_BREAK
  1200. case 37:
  1201. # line 218 "scan.l"
  1202. {
  1203.             if ( all_lower( yytext ) )
  1204.                 yymore_really_used = checking_used;
  1205.             else
  1206.                 synerr( "unrecognized %used/%unused construct" );
  1207.             }
  1208.     YY_BREAK
  1209. case 38:
  1210. # line 224 "scan.l"
  1211. synerr( "unrecognized %used/%unused construct" );
  1212.     YY_BREAK
  1213. case 39:
  1214. # line 227 "scan.l"
  1215. ++linenum; BEGIN(INITIAL);
  1216.     YY_BREAK
  1217. case 40:
  1218. # line 228 "scan.l"
  1219. ++num_xlations; new_xlation = true;
  1220.     YY_BREAK
  1221. case 41:
  1222. # line 229 "scan.l"
  1223. synerr( "bad row in translation table" );
  1224.     YY_BREAK
  1225. case 42:
  1226. # line 230 "scan.l"
  1227. /* ignore whitespace */
  1228.     YY_BREAK
  1229. case 43:
  1230. # line 232 "scan.l"
  1231. {
  1232.             xlation[myesc( yytext )] =
  1233.                 (new_xlation ? num_xlations : -num_xlations);
  1234.             new_xlation = false;
  1235.             }
  1236.     YY_BREAK
  1237. case 44:
  1238. # line 237 "scan.l"
  1239. {
  1240.             xlation[yytext[0]] =
  1241.                 (new_xlation ? num_xlations : -num_xlations);
  1242.             new_xlation = false;
  1243.             }
  1244.     YY_BREAK
  1245. case 45:
  1246. # line 243 "scan.l"
  1247. ++linenum;
  1248.     YY_BREAK
  1249. case 46:
  1250. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1251. yy_c_buf_p = yy_cp -= 1;
  1252. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1253. # line 246 "scan.l"
  1254. {
  1255.             ++linenum;
  1256.             ACTION_ECHO;
  1257.             MARK_END_OF_PROLOG;
  1258.             BEGIN(SECT2);
  1259.             }
  1260.     YY_BREAK
  1261. case 47:
  1262. # line 253 "scan.l"
  1263. ++linenum; ACTION_ECHO;
  1264.     YY_BREAK
  1265. case YY_STATE_EOF(SECT2PROLOG):
  1266. # line 255 "scan.l"
  1267. MARK_END_OF_PROLOG; yyterminate();
  1268.     YY_BREAK
  1269. case 49:
  1270. # line 257 "scan.l"
  1271. ++linenum; /* allow blank lines in section 2 */
  1272.     YY_BREAK
  1273. case 50:
  1274. # line 259 "scan.l"
  1275. {
  1276.             indented_code = (yytext[0] != '%');
  1277.             doing_codeblock = true;
  1278.             bracelevel = 1;
  1279.  
  1280.             if ( indented_code )
  1281.                 ACTION_ECHO;
  1282.  
  1283.             BEGIN(CODEBLOCK_2);
  1284.             }
  1285.     YY_BREAK
  1286. case 51:
  1287. # line 270 "scan.l"
  1288. BEGIN(SC); return ( '<' );
  1289.     YY_BREAK
  1290. case 52:
  1291. # line 271 "scan.l"
  1292. return ( '^' );
  1293.     YY_BREAK
  1294. case 53:
  1295. # line 272 "scan.l"
  1296. BEGIN(QUOTE); return ( '"' );
  1297.     YY_BREAK
  1298. case 54:
  1299. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1300. yy_c_buf_p = yy_cp = yy_bp + 1;
  1301. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1302. # line 273 "scan.l"
  1303. BEGIN(NUM); return ( '{' );
  1304.     YY_BREAK
  1305. case 55:
  1306. # line 274 "scan.l"
  1307. BEGIN(BRACEERROR);
  1308.     YY_BREAK
  1309. case 56:
  1310. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1311. yy_c_buf_p = yy_cp = yy_bp + 1;
  1312. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1313. # line 275 "scan.l"
  1314. return ( '$' );
  1315.     YY_BREAK
  1316. case 57:
  1317. # line 277 "scan.l"
  1318. {
  1319.             bracelevel = 1;
  1320.             BEGIN(PERCENT_BRACE_ACTION);
  1321.             return ( '\n' );
  1322.             }
  1323.     YY_BREAK
  1324. case 58:
  1325. # line 282 "scan.l"
  1326. continued_action = true; ++linenum; return ( '\n' );
  1327.     YY_BREAK
  1328. case 59:
  1329. # line 284 "scan.l"
  1330. {
  1331.             /* this rule is separate from the one below because
  1332.              * otherwise we get variable trailing context, so
  1333.              * we can't build the scanner using -{f,F}
  1334.              */
  1335.             bracelevel = 0;
  1336.             continued_action = false;
  1337.             BEGIN(ACTION);
  1338.             return ( '\n' );
  1339.             }
  1340.     YY_BREAK
  1341. case 60:
  1342. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1343. yy_c_buf_p = yy_cp -= 1;
  1344. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1345. # line 295 "scan.l"
  1346. {
  1347.             bracelevel = 0;
  1348.             continued_action = false;
  1349.             BEGIN(ACTION);
  1350.             return ( '\n' );
  1351.             }
  1352.     YY_BREAK
  1353. case 61:
  1354. # line 302 "scan.l"
  1355. ++linenum; return ( '\n' );
  1356.     YY_BREAK
  1357. case 62:
  1358. # line 304 "scan.l"
  1359. return ( EOF_OP );
  1360.     YY_BREAK
  1361. case 63:
  1362. # line 306 "scan.l"
  1363. {
  1364.             sectnum = 3;
  1365.             BEGIN(SECT3);
  1366.             return ( EOF ); /* to stop the parser */
  1367.             }
  1368.     YY_BREAK
  1369. case 64:
  1370. # line 312 "scan.l"
  1371. {
  1372.             int cclval;
  1373.  
  1374.             (void) strcpy( nmstr, (char *) yytext );
  1375.  
  1376.             /* check to see if we've already encountered this ccl */
  1377.             if ( (cclval = ccllookup( (Char *) nmstr )) )
  1378.                 {
  1379.                 yylval = cclval;
  1380.                 ++cclreuse;
  1381.                 return ( PREVCCL );
  1382.                 }
  1383.             else
  1384.                 {
  1385.                 /* we fudge a bit.  We know that this ccl will
  1386.                  * soon be numbered as lastccl + 1 by cclinit
  1387.                  */
  1388.                 cclinstal( (Char *) nmstr, lastccl + 1 );
  1389.  
  1390.                 /* push back everything but the leading bracket
  1391.                  * so the ccl can be rescanned
  1392.                  */
  1393.                 PUT_BACK_STRING((Char *) nmstr, 1);
  1394.  
  1395.                 BEGIN(FIRSTCCL);
  1396.                 return ( '[' );
  1397.                 }
  1398.             }
  1399.     YY_BREAK
  1400. case 65:
  1401. # line 341 "scan.l"
  1402. {
  1403.             register Char *nmdefptr;
  1404.             Char *ndlookup();
  1405.  
  1406.             (void) strcpy( nmstr, (char *) yytext );
  1407.             nmstr[yyleng - 1] = '\0';  /* chop trailing brace */
  1408.  
  1409.             /* lookup from "nmstr + 1" to chop leading brace */
  1410.             if ( ! (nmdefptr = ndlookup( nmstr + 1 )) )
  1411.                 synerr( "undefined {name}" );
  1412.  
  1413.             else
  1414.                 { /* push back name surrounded by ()'s */
  1415.                 unput(')');
  1416.                 PUT_BACK_STRING(nmdefptr, 0);
  1417.                 unput('(');
  1418.                 }
  1419.             }
  1420.     YY_BREAK
  1421. case 66:
  1422. # line 360 "scan.l"
  1423. return ( yytext[0] );
  1424.     YY_BREAK
  1425. case 67:
  1426. # line 361 "scan.l"
  1427. RETURNCHAR;
  1428.     YY_BREAK
  1429. case 68:
  1430. # line 362 "scan.l"
  1431. ++linenum; return ( '\n' );
  1432.     YY_BREAK
  1433. case 69:
  1434. # line 365 "scan.l"
  1435. return ( ',' );
  1436.     YY_BREAK
  1437. case 70:
  1438. # line 366 "scan.l"
  1439. BEGIN(SECT2); return ( '>' );
  1440.     YY_BREAK
  1441. case 71:
  1442. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1443. yy_c_buf_p = yy_cp = yy_bp + 1;
  1444. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1445. # line 367 "scan.l"
  1446. BEGIN(CARETISBOL); return ( '>' );
  1447.     YY_BREAK
  1448. case 72:
  1449. # line 368 "scan.l"
  1450. RETURNNAME;
  1451.     YY_BREAK
  1452. case 73:
  1453. # line 369 "scan.l"
  1454. synerr( "bad start condition name" );
  1455.     YY_BREAK
  1456. case 74:
  1457. # line 371 "scan.l"
  1458. BEGIN(SECT2); return ( '^' );
  1459.     YY_BREAK
  1460. case 75:
  1461. # line 374 "scan.l"
  1462. RETURNCHAR;
  1463.     YY_BREAK
  1464. case 76:
  1465. # line 375 "scan.l"
  1466. BEGIN(SECT2); return ( '"' );
  1467.     YY_BREAK
  1468. case 77:
  1469. # line 377 "scan.l"
  1470. {
  1471.             synerr( "missing quote" );
  1472.             BEGIN(SECT2);
  1473.             ++linenum;
  1474.             return ( '"' );
  1475.             }
  1476.     YY_BREAK
  1477. case 78:
  1478. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1479. yy_c_buf_p = yy_cp = yy_bp + 1;
  1480. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1481. # line 385 "scan.l"
  1482. BEGIN(CCL); return ( '^' );
  1483.     YY_BREAK
  1484. case 79:
  1485. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1486. yy_c_buf_p = yy_cp = yy_bp + 1;
  1487. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1488. # line 386 "scan.l"
  1489. return ( '^' );
  1490.     YY_BREAK
  1491. case 80:
  1492. # line 387 "scan.l"
  1493. BEGIN(CCL); yylval = '-'; return ( CHAR );
  1494.     YY_BREAK
  1495. case 81:
  1496. # line 388 "scan.l"
  1497. BEGIN(CCL); RETURNCHAR;
  1498.     YY_BREAK
  1499. case 82:
  1500. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1501. yy_c_buf_p = yy_cp = yy_bp + 1;
  1502. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1503. # line 390 "scan.l"
  1504. return ( '-' );
  1505.     YY_BREAK
  1506. case 83:
  1507. # line 391 "scan.l"
  1508. RETURNCHAR;
  1509.     YY_BREAK
  1510. case 84:
  1511. # line 392 "scan.l"
  1512. BEGIN(SECT2); return ( ']' );
  1513.     YY_BREAK
  1514. case 85:
  1515. # line 395 "scan.l"
  1516. {
  1517.             yylval = myctoi( yytext );
  1518.             return ( NUMBER );
  1519.             }
  1520.     YY_BREAK
  1521. case 86:
  1522. # line 400 "scan.l"
  1523. return ( ',' );
  1524.     YY_BREAK
  1525. case 87:
  1526. # line 401 "scan.l"
  1527. BEGIN(SECT2); return ( '}' );
  1528.     YY_BREAK
  1529. case 88:
  1530. # line 403 "scan.l"
  1531. {
  1532.             synerr( "bad character inside {}'s" );
  1533.             BEGIN(SECT2);
  1534.             return ( '}' );
  1535.             }
  1536.     YY_BREAK
  1537. case 89:
  1538. # line 409 "scan.l"
  1539. {
  1540.             synerr( "missing }" );
  1541.             BEGIN(SECT2);
  1542.             ++linenum;
  1543.             return ( '}' );
  1544.             }
  1545.     YY_BREAK
  1546. case 90:
  1547. # line 417 "scan.l"
  1548. synerr( "bad name in {}'s" ); BEGIN(SECT2);
  1549.     YY_BREAK
  1550. case 91:
  1551. # line 418 "scan.l"
  1552. synerr( "missing }" ); ++linenum; BEGIN(SECT2);
  1553.     YY_BREAK
  1554. case 92:
  1555. # line 421 "scan.l"
  1556. bracelevel = 0;
  1557.     YY_BREAK
  1558. case 93:
  1559. # line 422 "scan.l"
  1560. {
  1561.             ACTION_ECHO;
  1562.             CHECK_REJECT(yytext);
  1563.             }
  1564.     YY_BREAK
  1565. case 94:
  1566. # line 426 "scan.l"
  1567. {
  1568.             ACTION_ECHO;
  1569.             CHECK_YYMORE(yytext);
  1570.             }
  1571.     YY_BREAK
  1572. case 95:
  1573. # line 430 "scan.l"
  1574. ACTION_ECHO;
  1575.     YY_BREAK
  1576. case 96:
  1577. # line 431 "scan.l"
  1578. {
  1579.             ++linenum;
  1580.             ACTION_ECHO;
  1581.             if ( bracelevel == 0 ||
  1582.                  (doing_codeblock && indented_code) )
  1583.                 {
  1584.                 if ( ! doing_codeblock )
  1585.                 fputs( "\tYY_BREAK\n", temp_action_file );
  1586.                 
  1587.                 doing_codeblock = false;
  1588.                 BEGIN(SECT2);
  1589.                 }
  1590.             }
  1591.     YY_BREAK
  1592.     /* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
  1593. case 97:
  1594. # line 447 "scan.l"
  1595. ACTION_ECHO; ++bracelevel;
  1596.     YY_BREAK
  1597. case 98:
  1598. # line 448 "scan.l"
  1599. ACTION_ECHO; --bracelevel;
  1600.     YY_BREAK
  1601. case 99:
  1602. # line 449 "scan.l"
  1603. ACTION_ECHO;
  1604.     YY_BREAK
  1605. case 100:
  1606. # line 450 "scan.l"
  1607. ACTION_ECHO;
  1608.     YY_BREAK
  1609. case 101:
  1610. # line 451 "scan.l"
  1611. ACTION_ECHO; BEGIN(ACTION_COMMENT);
  1612.     YY_BREAK
  1613. case 102:
  1614. # line 452 "scan.l"
  1615. ACTION_ECHO; /* character constant */
  1616.     YY_BREAK
  1617. case 103:
  1618. # line 453 "scan.l"
  1619. ACTION_ECHO; BEGIN(ACTION_STRING);
  1620.     YY_BREAK
  1621. case 104:
  1622. # line 454 "scan.l"
  1623. {
  1624.             ++linenum;
  1625.             ACTION_ECHO;
  1626.             if ( bracelevel == 0 )
  1627.                 {
  1628.                 fputs( "\tYY_BREAK\n", temp_action_file );
  1629.                 BEGIN(SECT2);
  1630.                 }
  1631.             }
  1632.     YY_BREAK
  1633. case 105:
  1634. # line 463 "scan.l"
  1635. ACTION_ECHO;
  1636.     YY_BREAK
  1637. case 106:
  1638. # line 465 "scan.l"
  1639. ACTION_ECHO; BEGIN(ACTION);
  1640.     YY_BREAK
  1641. case 107:
  1642. # line 466 "scan.l"
  1643. ACTION_ECHO;
  1644.     YY_BREAK
  1645. case 108:
  1646. # line 467 "scan.l"
  1647. ACTION_ECHO;
  1648.     YY_BREAK
  1649. case 109:
  1650. # line 468 "scan.l"
  1651. ++linenum; ACTION_ECHO;
  1652.     YY_BREAK
  1653. case 110:
  1654. # line 469 "scan.l"
  1655. ACTION_ECHO;
  1656.     YY_BREAK
  1657. case 111:
  1658. # line 471 "scan.l"
  1659. ACTION_ECHO;
  1660.     YY_BREAK
  1661. case 112:
  1662. # line 472 "scan.l"
  1663. ACTION_ECHO;
  1664.     YY_BREAK
  1665. case 113:
  1666. # line 473 "scan.l"
  1667. ++linenum; ACTION_ECHO;
  1668.     YY_BREAK
  1669. case 114:
  1670. # line 474 "scan.l"
  1671. ACTION_ECHO; BEGIN(ACTION);
  1672.     YY_BREAK
  1673. case 115:
  1674. # line 475 "scan.l"
  1675. ACTION_ECHO;
  1676.     YY_BREAK
  1677. case YY_STATE_EOF(ACTION):
  1678. case YY_STATE_EOF(ACTION_COMMENT):
  1679. case YY_STATE_EOF(ACTION_STRING):
  1680. # line 477 "scan.l"
  1681. {
  1682.             synerr( "EOF encountered inside an action" );
  1683.             yyterminate();
  1684.             }
  1685.     YY_BREAK
  1686. case 117:
  1687. # line 483 "scan.l"
  1688. {
  1689.             yylval = myesc( yytext );
  1690.             return ( CHAR );
  1691.             }
  1692.     YY_BREAK
  1693. case 118:
  1694. # line 488 "scan.l"
  1695. {
  1696.             yylval = myesc( yytext );
  1697.             BEGIN(CCL);
  1698.             return ( CHAR );
  1699.             }
  1700.     YY_BREAK
  1701. case 119:
  1702. # line 495 "scan.l"
  1703. ECHO;
  1704.     YY_BREAK
  1705. case 120:
  1706. # line 496 "scan.l"
  1707. YY_FATAL_ERROR( "flex scanner jammed" );
  1708.     YY_BREAK
  1709. case YY_STATE_EOF(INITIAL):
  1710. case YY_STATE_EOF(SECT2):
  1711. case YY_STATE_EOF(SECT3):
  1712. case YY_STATE_EOF(CODEBLOCK):
  1713. case YY_STATE_EOF(PICKUPDEF):
  1714. case YY_STATE_EOF(SC):
  1715. case YY_STATE_EOF(CARETISBOL):
  1716. case YY_STATE_EOF(NUM):
  1717. case YY_STATE_EOF(QUOTE):
  1718. case YY_STATE_EOF(FIRSTCCL):
  1719. case YY_STATE_EOF(CCL):
  1720. case YY_STATE_EOF(RECOVER):
  1721. case YY_STATE_EOF(BRACEERROR):
  1722. case YY_STATE_EOF(C_COMMENT):
  1723. case YY_STATE_EOF(PERCENT_BRACE_ACTION):
  1724. case YY_STATE_EOF(USED_LIST):
  1725. case YY_STATE_EOF(CODEBLOCK_2):
  1726. case YY_STATE_EOF(XLATION):
  1727.     yyterminate();
  1728.  
  1729.         case YY_END_OF_BUFFER:
  1730.         {
  1731.         /* amount of text matched not including the EOB char */
  1732.         int yy_amount_of_matched_text = yy_cp - yytext - 1;
  1733.  
  1734.         /* undo the effects of YY_DO_BEFORE_ACTION */
  1735.         *yy_cp = yy_hold_char;
  1736.  
  1737.         /* note that here we test for yy_c_buf_p "<=" to the position
  1738.          * of the first EOB in the buffer, since yy_c_buf_p will
  1739.          * already have been incremented past the NUL character
  1740.          * (since all states make transitions on EOB to the end-
  1741.          * of-buffer state).  Contrast this with the test in yyinput().
  1742.          */
  1743.         if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1744.             /* this was really a NUL */
  1745.             {
  1746.             yy_state_type yy_next_state;
  1747.  
  1748.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1749.  
  1750.             yy_current_state = yy_get_previous_state();
  1751.  
  1752.             /* okay, we're now positioned to make the
  1753.              * NUL transition.  We couldn't have
  1754.              * yy_get_previous_state() go ahead and do it
  1755.              * for us because it doesn't know how to deal
  1756.              * with the possibility of jamming (and we
  1757.              * don't want to build jamming into it because
  1758.              * then it will run more slowly)
  1759.              */
  1760.  
  1761.             yy_next_state = yy_try_NUL_trans( yy_current_state );
  1762.  
  1763.             yy_bp = yytext + YY_MORE_ADJ;
  1764.  
  1765.             if ( yy_next_state )
  1766.             {
  1767.             /* consume the NUL */
  1768.             yy_cp = ++yy_c_buf_p;
  1769.             yy_current_state = yy_next_state;
  1770.             goto yy_match;
  1771.             }
  1772.  
  1773.             else
  1774.             {
  1775.                 yy_cp = yy_last_accepting_cpos;
  1776.                 yy_current_state = yy_last_accepting_state;
  1777.             goto yy_find_action;
  1778.             }
  1779.             }
  1780.  
  1781.         else switch ( yy_get_next_buffer() )
  1782.             {
  1783.             case EOB_ACT_END_OF_FILE:
  1784.             {
  1785.             yy_did_buffer_switch_on_eof = 0;
  1786.  
  1787.             if ( yywrap() )
  1788.                 {
  1789.                 /* note: because we've taken care in
  1790.                  * yy_get_next_buffer() to have set up yytext,
  1791.                  * we can now set up yy_c_buf_p so that if some
  1792.                  * total hoser (like flex itself) wants
  1793.                  * to call the scanner after we return the
  1794.                  * YY_NULL, it'll still work - another YY_NULL
  1795.                  * will get returned.
  1796.                  */
  1797.                 yy_c_buf_p = yytext + YY_MORE_ADJ;
  1798.  
  1799.                 yy_act = YY_STATE_EOF((yy_start - 1) / 2);
  1800.                 goto do_action;
  1801.                 }
  1802.  
  1803.             else
  1804.                 {
  1805.                 if ( ! yy_did_buffer_switch_on_eof )
  1806.                 YY_NEW_FILE;
  1807.                 }
  1808.             }
  1809.             break;
  1810.  
  1811.             case EOB_ACT_CONTINUE_SCAN:
  1812.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1813.  
  1814.             yy_current_state = yy_get_previous_state();
  1815.  
  1816.             yy_cp = yy_c_buf_p;
  1817.             yy_bp = yytext + YY_MORE_ADJ;
  1818.             goto yy_match;
  1819.  
  1820.             case EOB_ACT_LAST_MATCH:
  1821.             yy_c_buf_p =
  1822.                 &yy_current_buffer->yy_ch_buf[yy_n_chars];
  1823.  
  1824.             yy_current_state = yy_get_previous_state();
  1825.  
  1826.             yy_cp = yy_c_buf_p;
  1827.             yy_bp = yytext + YY_MORE_ADJ;
  1828.             goto yy_find_action;
  1829.             }
  1830.         break;
  1831.         }
  1832.  
  1833.         default:
  1834. #ifdef FLEX_DEBUG
  1835.         printf( "action # %d\n", yy_act );
  1836. #endif
  1837.         YY_FATAL_ERROR(
  1838.             "fatal flex scanner internal error--no action found" );
  1839.         }
  1840.     }
  1841.     }
  1842.  
  1843.  
  1844. /* yy_get_next_buffer - try to read in a new buffer
  1845.  *
  1846.  * synopsis
  1847.  *     int yy_get_next_buffer();
  1848.  *     
  1849.  * returns a code representing an action
  1850.  *     EOB_ACT_LAST_MATCH - 
  1851.  *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1852.  *     EOB_ACT_END_OF_FILE - end of file
  1853.  */
  1854.  
  1855. static int yy_get_next_buffer()
  1856.  
  1857.     {
  1858.     register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
  1859.     register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
  1860.     register int number_to_move, i;
  1861.     int ret_val;
  1862.  
  1863.     if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1864.     YY_FATAL_ERROR(
  1865.         "fatal flex scanner internal error--end of buffer missed" );
  1866.  
  1867.     /* try to read more data */
  1868.  
  1869.     /* first move last chars to start of buffer */
  1870.     number_to_move = yy_c_buf_p - yytext;
  1871.  
  1872.     for ( i = 0; i < number_to_move; ++i )
  1873.     *(dest++) = *(source++);
  1874.  
  1875.     if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
  1876.     /* don't do the read, it's not guaranteed to return an EOF,
  1877.      * just force an EOF
  1878.      */
  1879.     yy_n_chars = 0;
  1880.  
  1881.     else
  1882.     {
  1883.     int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
  1884.  
  1885.     if ( num_to_read > YY_READ_BUF_SIZE )
  1886.         num_to_read = YY_READ_BUF_SIZE;
  1887.  
  1888.     else if ( num_to_read <= 0 )
  1889.         YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
  1890.  
  1891.     /* read in more data */
  1892.     YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1893.           yy_n_chars, num_to_read );
  1894.     }
  1895.  
  1896.     if ( yy_n_chars == 0 )
  1897.     {
  1898.     if ( number_to_move == 1 )
  1899.         {
  1900.         ret_val = EOB_ACT_END_OF_FILE;
  1901.         yy_current_buffer->yy_eof_status = EOF_DONE;
  1902.         }
  1903.  
  1904.     else
  1905.         {
  1906.         ret_val = EOB_ACT_LAST_MATCH;
  1907.         yy_current_buffer->yy_eof_status = EOF_PENDING;
  1908.         }
  1909.     }
  1910.  
  1911.     else
  1912.     ret_val = EOB_ACT_CONTINUE_SCAN;
  1913.  
  1914.     yy_n_chars += number_to_move;
  1915.     yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1916.     yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1917.  
  1918.     /* yytext begins at the second character in yy_ch_buf; the first
  1919.      * character is the one which preceded it before reading in the latest
  1920.      * buffer; it needs to be kept around in case it's a newline, so
  1921.      * yy_get_previous_state() will have with '^' rules active
  1922.      */
  1923.  
  1924.     yytext = &yy_current_buffer->yy_ch_buf[1];
  1925.  
  1926.     return ( ret_val );
  1927.     }
  1928.  
  1929.  
  1930. /* yy_get_previous_state - get the state just before the EOB char was reached
  1931.  *
  1932.  * synopsis
  1933.  *     yy_state_type yy_get_previous_state();
  1934.  */
  1935.  
  1936. static yy_state_type yy_get_previous_state()
  1937.  
  1938.     {
  1939.     register yy_state_type yy_current_state;
  1940.     register YY_CHAR *yy_cp;
  1941.  
  1942.     register YY_CHAR *yy_bp = yytext;
  1943.  
  1944.     yy_current_state = yy_start;
  1945.     if ( yy_bp[-1] == '\n' )
  1946.     ++yy_current_state;
  1947.  
  1948.     for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1949.     {
  1950.     register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
  1951.     if ( yy_accept[yy_current_state] )
  1952.         {
  1953.         yy_last_accepting_state = yy_current_state;
  1954.         yy_last_accepting_cpos = yy_cp;
  1955.         }
  1956.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1957.         {
  1958.         yy_current_state = yy_def[yy_current_state];
  1959.         if ( yy_current_state >= 341 )
  1960.         yy_c = yy_meta[yy_c];
  1961.         }
  1962.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1963.     }
  1964.  
  1965.     return ( yy_current_state );
  1966.     }
  1967.  
  1968.  
  1969. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1970.  *
  1971.  * synopsis
  1972.  *     next_state = yy_try_NUL_trans( current_state );
  1973.  */
  1974.  
  1975. #ifdef YY_USE_PROTOS
  1976. static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
  1977. #else
  1978. static yy_state_type yy_try_NUL_trans( yy_current_state )
  1979. register yy_state_type yy_current_state;
  1980. #endif
  1981.  
  1982.     {
  1983.     register int yy_is_jam;
  1984.     register YY_CHAR *yy_cp = yy_c_buf_p;
  1985.  
  1986.     register YY_CHAR yy_c = 1;
  1987.     if ( yy_accept[yy_current_state] )
  1988.     {
  1989.     yy_last_accepting_state = yy_current_state;
  1990.     yy_last_accepting_cpos = yy_cp;
  1991.     }
  1992.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1993.     {
  1994.     yy_current_state = yy_def[yy_current_state];
  1995.     if ( yy_current_state >= 341 )
  1996.         yy_c = yy_meta[yy_c];
  1997.     }
  1998.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1999.     yy_is_jam = (yy_current_state == 340);
  2000.  
  2001.     return ( yy_is_jam ? 0 : yy_current_state );
  2002.     }
  2003.  
  2004.  
  2005. #ifdef YY_USE_PROTOS
  2006. static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
  2007. #else
  2008. static void yyunput( c, yy_bp )
  2009. YY_CHAR c;
  2010. register YY_CHAR *yy_bp;
  2011. #endif
  2012.  
  2013.     {
  2014.     register YY_CHAR *yy_cp = yy_c_buf_p;
  2015.  
  2016.     /* undo effects of setting up yytext */
  2017.     *yy_cp = yy_hold_char;
  2018.  
  2019.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2020.     { /* need to shift things up to make room */
  2021.     register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
  2022.     register YY_CHAR *dest =
  2023.         &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
  2024.     register YY_CHAR *source =
  2025.         &yy_current_buffer->yy_ch_buf[number_to_move];
  2026.  
  2027.     while ( source > yy_current_buffer->yy_ch_buf )
  2028.         *--dest = *--source;
  2029.  
  2030.     yy_cp += dest - source;
  2031.     yy_bp += dest - source;
  2032.     yy_n_chars = yy_current_buffer->yy_buf_size;
  2033.  
  2034.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2035.         YY_FATAL_ERROR( "flex scanner push-back overflow" );
  2036.     }
  2037.  
  2038.     if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
  2039.     yy_cp[-2] = '\n';
  2040.  
  2041.     *--yy_cp = c;
  2042.  
  2043.     /* note: the formal parameter *must* be called "yy_bp" for this
  2044.      *       macro to now work correctly
  2045.      */
  2046.     YY_DO_BEFORE_ACTION; /* set up yytext again */
  2047.     }
  2048.  
  2049.  
  2050. #ifdef __cplusplus
  2051. static int yyinput()
  2052. #else
  2053. static int input()
  2054. #endif
  2055.  
  2056.     {
  2057.     int c;
  2058.     YY_CHAR *yy_cp = yy_c_buf_p;
  2059.  
  2060.     *yy_cp = yy_hold_char;
  2061.  
  2062.     if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  2063.     {
  2064.     /* yy_c_buf_p now points to the character we want to return.
  2065.      * If this occurs *before* the EOB characters, then it's a
  2066.      * valid NUL; if not, then we've hit the end of the buffer.
  2067.      */
  2068.     if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  2069.         /* this was really a NUL */
  2070.         *yy_c_buf_p = '\0';
  2071.  
  2072.     else
  2073.         { /* need more input */
  2074.         yytext = yy_c_buf_p;
  2075.         ++yy_c_buf_p;
  2076.  
  2077.         switch ( yy_get_next_buffer() )
  2078.         {
  2079.         case EOB_ACT_END_OF_FILE:
  2080.             {
  2081.             if ( yywrap() )
  2082.             {
  2083.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  2084.             return ( EOF );
  2085.             }
  2086.  
  2087.             YY_NEW_FILE;
  2088.  
  2089. #ifdef __cplusplus
  2090.             return ( yyinput() );
  2091. #else
  2092.             return ( input() );
  2093. #endif
  2094.             }
  2095.             break;
  2096.  
  2097.         case EOB_ACT_CONTINUE_SCAN:
  2098.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  2099.             break;
  2100.  
  2101.         case EOB_ACT_LAST_MATCH:
  2102. #ifdef __cplusplus
  2103.             YY_FATAL_ERROR( "unexpected last match in yyinput()" );
  2104. #else
  2105.             YY_FATAL_ERROR( "unexpected last match in input()" );
  2106. #endif
  2107.         }
  2108.         }
  2109.     }
  2110.  
  2111.     c = *yy_c_buf_p;
  2112.     yy_hold_char = *++yy_c_buf_p;
  2113.  
  2114.     return ( c );
  2115.     }
  2116.  
  2117.  
  2118. #ifdef YY_USE_PROTOS
  2119. void yyrestart( FILE *input_file )
  2120. #else
  2121. void yyrestart( input_file )
  2122. FILE *input_file;
  2123. #endif
  2124.  
  2125.     {
  2126.     yy_init_buffer( yy_current_buffer, input_file );
  2127.     yy_load_buffer_state();
  2128.     }
  2129.  
  2130.  
  2131. #ifdef YY_USE_PROTOS
  2132. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  2133. #else
  2134. void yy_switch_to_buffer( new_buffer )
  2135. YY_BUFFER_STATE new_buffer;
  2136. #endif
  2137.  
  2138.     {
  2139.     if ( yy_current_buffer == new_buffer )
  2140.     return;
  2141.  
  2142.     if ( yy_current_buffer )
  2143.     {
  2144.     /* flush out information for old buffer */
  2145.     *yy_c_buf_p = yy_hold_char;
  2146.     yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  2147.     yy_current_buffer->yy_n_chars = yy_n_chars;
  2148.     }
  2149.  
  2150.     yy_current_buffer = new_buffer;
  2151.     yy_load_buffer_state();
  2152.  
  2153.     /* we don't actually know whether we did this switch during
  2154.      * EOF (yywrap()) processing, but the only time this flag
  2155.      * is looked at is after yywrap() is called, so it's safe
  2156.      * to go ahead and always set it.
  2157.      */
  2158.     yy_did_buffer_switch_on_eof = 1;
  2159.     }
  2160.  
  2161.  
  2162. #ifdef YY_USE_PROTOS
  2163. void yy_load_buffer_state( void )
  2164. #else
  2165. void yy_load_buffer_state()
  2166. #endif
  2167.  
  2168.     {
  2169.     yy_n_chars = yy_current_buffer->yy_n_chars;
  2170.     yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  2171.     yyin = yy_current_buffer->yy_input_file;
  2172.     yy_hold_char = *yy_c_buf_p;
  2173.     }
  2174.  
  2175.  
  2176. #ifdef YY_USE_PROTOS
  2177. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  2178. #else
  2179. YY_BUFFER_STATE yy_create_buffer( file, size )
  2180. FILE *file;
  2181. int size;
  2182. #endif
  2183.  
  2184.     {
  2185.     YY_BUFFER_STATE b;
  2186.  
  2187.     b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
  2188.  
  2189.     if ( ! b )
  2190.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2191.  
  2192.     b->yy_buf_size = size;
  2193.  
  2194.     /* yy_ch_buf has to be 2 characters longer than the size given because
  2195.      * we need to put in 2 end-of-buffer characters.
  2196.      */
  2197.     b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
  2198.  
  2199.     if ( ! b->yy_ch_buf )
  2200.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2201.  
  2202.     yy_init_buffer( b, file );
  2203.  
  2204.     return ( b );
  2205.     }
  2206.  
  2207.  
  2208. #ifdef YY_USE_PROTOS
  2209. void yy_delete_buffer( YY_BUFFER_STATE b )
  2210. #else
  2211. void yy_delete_buffer( b )
  2212. YY_BUFFER_STATE b;
  2213. #endif
  2214.  
  2215.     {
  2216.     if ( b == yy_current_buffer )
  2217.     yy_current_buffer = (YY_BUFFER_STATE) 0;
  2218.  
  2219.     free( (char *) b->yy_ch_buf );
  2220.     free( (char *) b );
  2221.     }
  2222.  
  2223.  
  2224. #ifdef YY_USE_PROTOS
  2225. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  2226. #else
  2227. void yy_init_buffer( b, file )
  2228. YY_BUFFER_STATE b;
  2229. FILE *file;
  2230. #endif
  2231.  
  2232.     {
  2233.     b->yy_input_file = file;
  2234.  
  2235.     /* we put in the '\n' and start reading from [1] so that an
  2236.      * initial match-at-newline will be true.
  2237.      */
  2238.  
  2239.     b->yy_ch_buf[0] = '\n';
  2240.     b->yy_n_chars = 1;
  2241.  
  2242.     /* we always need two end-of-buffer characters.  The first causes
  2243.      * a transition to the end-of-buffer state.  The second causes
  2244.      * a jam in that state.
  2245.      */
  2246.     b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  2247.     b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
  2248.  
  2249.     b->yy_buf_pos = &b->yy_ch_buf[1];
  2250.  
  2251.     b->yy_eof_status = EOF_NOT_SEEN;
  2252.     }
  2253. # line 496 "scan.l"
  2254.  
  2255.  
  2256.  
  2257. int yywrap()
  2258.  
  2259.     {
  2260.     if ( --num_input_files > 0 )
  2261.     {
  2262.     set_input_file( *++input_files );
  2263.     return ( 0 );
  2264.     }
  2265.  
  2266.     else
  2267.     return ( 1 );
  2268.     }
  2269.  
  2270.  
  2271. /* set_input_file - open the given file (if NULL, stdin) for scanning */
  2272.  
  2273. void set_input_file( file )
  2274. char *file;
  2275.  
  2276.     {
  2277.     if ( file )
  2278.     {
  2279.     infilename = file;
  2280.     yyin = fopen( infilename, "r" );
  2281.  
  2282.     if ( yyin == NULL )
  2283.         lerrsf( "can't open %s", file );
  2284.     }
  2285.  
  2286.     else
  2287.     {
  2288.     yyin = stdin;
  2289.     infilename = "<stdin>";
  2290.     }
  2291.     }
  2292.